#ifndef _FONTS_MANAGER_H
#define _FONTS_MANAGER_H


#ifndef NULL
#define NULL (void *)0
#endif

// 在lcd坐标系下的
typedef struct FontBitMap
{
    int iXLeft;
	int iYTop;
	int iXMax;
	int iYMax;
	int iBpp;
	int iPitch; // 每一行像素占多少字节
	int iCurOriginX;
	int iCurOriginY;
	int iNextOriginX;
	int iNextOriginY;
	unsigned char *pucBuffer;
}FontBitMap, *PFontBitMap;




typedef struct FontOpr
{
    char *name;
    int (*FontInit)(char *FontFileName, int FontSize);
    int (*GetFontBitmap)(unsigned int dwCode, PFontBitMap ptFontBitMap);
    struct FontOpr *ptNext;

}FontOpr, *PFontOpr;




void RegisterFontOpr(FontOpr *ptFontOpr);
void RegisterAllFontOpr(void);
void ShowAllFontOpr(void);
PFontOpr GetFontOprByName(char *name);





#endif